package xyz.playedu.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.playedu.common.domain.AdminRoleCategories;

import java.util.List;

/**
 * @author chenguiying
 * @description 针对表【admin_role_categories】的数据库操作Service
 * @createDate 2024/7/16 14:52
 */
public interface AdminRoleCategoriesService extends IService<AdminRoleCategories> {

    List<Integer> getCategoriesByRoleId(Integer roleId);

    void updateByRoleId(Integer roleId, Integer[] perms);

    void saveCategories(Integer roleId, Integer[] perms);

}
